package com.dikang.yygh.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.dikang.yygh.model.hosp.Department;
import com.dikang.yygh.vo.hosp.DepartmentQueryVo;
import com.dikang.yygh.vo.hosp.DepartmentVo;
import org.springframework.data.domain.Page;

import java.util.List;
import java.util.Map;

public interface DepartmentService extends IService<Department> {
    void saveDepartment(Map<String, Object> paramrMap);

    // 查询科室接口
    Page<Department> findPageDepartment(Integer page, Integer limit, DepartmentQueryVo departmentQueryVo);

    // 根据医院编号和部门编号删除部门信息
    void remove(String depcode, String hoscode);

    // 根据医院编号查询出大小科室信息
    List<DepartmentVo> selectDepartmentByHoscode(String hoscode);

    // 获取部门的名称
    String getDepName(String depcode);

    Department getDepartment(String hoscode, String depcode);
}
